import {Module} from '@nestjs/common';
import {TypeOrmModule} from '@nestjs/typeorm';
import {RouterModule} from '@nestjs/core';
import {MethodsController} from "@src/modules/Methods/controllers/methods.controller";
import { OptionEntity } from '@src/modules/Survey/entities/Option.entity';
import { QuestionEntity } from '@src/modules/Survey/entities/Question.entity';
import { ResponseEntity } from '@src/modules/Survey/entities/Response.entity';
import { SurveyEntity } from '@src/modules/Survey/entities/Survey.entity';
import { SurveyQuestionEntity } from '@src/modules/Survey/entities/SurveyQuestion.entity';
import { SurveyController } from '@src/modules/Survey/controllers/Survey.controller';
import { SurveyService } from '@src/modules/Survey/services/Survey.service';
import { ManageController } from '@src/modules/Survey/controllers/manage.controller';
import { ManageService } from '@src/modules/Survey/services/manage.service';

@Module({
  imports: [
    RouterModule.register([
      {
        path: 'survey',
        module: this,
      },
      {
        path: 'manage',
        module: this,
      },
    ]),
    TypeOrmModule.forFeature([OptionEntity,QuestionEntity,ResponseEntity,SurveyEntity,SurveyQuestionEntity]),
  ],
  controllers: [SurveyController,ManageController],
  providers: [SurveyService,ManageService],
})
export class SurveyModule {
}
